package com.kkb.merchant.center.server.service;

import com.kkb.merchant.center.api.RoleInfoService;
import com.kkb.merchant.center.common.pojo.RoleInfo;
import com.kkb.merchant.center.server.mappers.RoleInfoMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;


@Service
public class RoleInfoServiceImpl implements RoleInfoService {

    @Autowired
    private RoleInfoMapper roleInfoMapper;

    @Override
    public List<RoleInfo> selectRoleByUserId(Long userId) {
        return roleInfoMapper.selectRoleByUserId(userId);
    }
}
